<?php
// +----------------------------------------------------------------------
// | WoShiMaiJia Projcet 
// +----------------------------------------------------------------------
// | Copyright (c) 2010-2011 http://woshimaijia.com All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: xinqiyang <xinqiyang@gmail.com>
// +----------------------------------------------------------------------

/**
 * UrlLogic 
 * 
 * @author xinqiyang
 *
 */
class UrlLogic extends BaseService
{
	public static function addUrl($array){
		
		return self::add('url', $array);
	}
	
	
	public static function block($limit)
	{
		return self::gets('url', "id>0 order by id desc limit $limit",'id,title');
	}
	
	

}
